import request from '@/utils/request'
// 保存或者是编辑，通过传过来的表单有没有roleId字段来判断
export function saveExchange(data) {
  return request({
    url: data.id ? '/my/editExchange' : '/my/addExchange/',
    method: 'POST',
    data
  })
}

export function getExchangeList(data) {
  return request({
    url: '/my/exchangeList',
    method: 'GET',
    params: data
  })
}

